package com.ruoyi.zhgd.service;

import cn.hutool.core.lang.tree.Tree;
import com.ruoyi.zhgd.domain.ZjOrganizationStructureTree;
import com.ruoyi.zhgd.domain.vo.ZjOrganizationStructureTreeVo;
import com.ruoyi.zhgd.domain.bo.ZjOrganizationStructureTreeBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 自建部门树结构Service接口
 *
 * @author zyb
 * @date 2023-10-11
 */
public interface IZjOrganizationStructureTreeService {

    /**
     * 查询自建部门树结构
     */
    ZjOrganizationStructureTreeVo queryById(String id);

    /**
     * 查询自建部门树结构列表
     */
    TableDataInfo<ZjOrganizationStructureTreeVo> queryPageList(ZjOrganizationStructureTreeBo bo, PageQuery pageQuery);

    /**
     * 查询自建部门树结构列表
     */
    List<ZjOrganizationStructureTreeVo> queryList(ZjOrganizationStructureTreeBo bo);

    /**
     * 新增自建部门树结构
     */
    Boolean insertByBo(ZjOrganizationStructureTree bo);

    /**
     * 修改自建部门树结构
     */
    Boolean updateByBo(ZjOrganizationStructureTree bo);

    /**
     * 校验并批量删除自建部门树结构信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);

    List<Tree<Long>> selecttTreeList(ZjOrganizationStructureTree dept);
}
